package com.fjec.activity.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjec.activity.service.IBizUserGiftChangeRecordService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("")
public class DevOpsController {

    @Resource
    private IBizUserGiftChangeRecordService bizUserGiftChangeRecordService;

    @GetMapping("/gift/giftChangeRecords")
    public Map<String, Object> giftChangeRecords(@RequestParam(required = false) Integer searchBy,
                                    @RequestParam(required = false) String title,
                                    @RequestParam(required = false) Integer busiType,
                                    @RequestParam(required = false) Integer opeType,
                                    @RequestParam(required = false) String startTime,
                                    @RequestParam(required = false) String endTime, Page page) {

        Map<String, Object> result = bizUserGiftChangeRecordService.changeRecords(searchBy, title, busiType,
                                                                            opeType, startTime, endTime, page);
        return result;
    }

    @GetMapping("/gift/getGiftChangeRecordDetail")
    public Map<String, Object> getGiftChangeRecordDetail(Integer opeType, Long opeId) {
        return null;
    }
}
